package com.springdata.domain;

import org.springframework.data.annotation.Id;

public class Contact {
	
	@Id
	private String id;
	private String company;	//소속회사
	private String work;	//담당업무
	private String name;	//이름
	private String position;//직급,직책,직무 등
	private String tel;		//전화번호
	private String mobile;	//핸드폰번호
	private String email;	//이메일
	private String etc;		//기타
	
	public Contact (String company, String work, String name, String position
			, String tel, String mobile, String email, String etc) {
		this.company	= company;
		this.work		= work;
		this.name		= name;
		this.position	= position;
		this.tel		= tel;
		this.mobile		= mobile;
		this.email		= email;
		this.etc		= etc;
	}

	public String getId() {
		return id;
	}

	public String getCompany() {
		return company;
	}

	public String getWork() {
		return work;
	}

	public String getName() {
		return name;
	}

	public String getPosition() {
		return position;
	}

	public String getTel() {
		return tel;
	}

	public String getMobile() {
		return mobile;
	}

	public String getEmail() {
		return email;
	}

	public String getEtc() {
		return etc;
	}

	public void setId(String id) {
		this.id = id;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public void setWork(String work) {
		this.work = work;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public void setEtc(String etc) {
		this.etc = etc;
	}

	@Override
	public String toString() {
		return "{\"id\":\"" + id + "\", \"company\":\"" + company
				+ "\", \"work\":\"" + work + "\", \"name\":\"" + name
				+ "\", \"position\":\"" + position + "\", \"tel\":\"" + tel
				+ "\", \"mobile\":\"" + mobile + "\", \"email\":\"" + email
				+ "\", \"etc\":\"" + etc + "\"}";
	}
	
}
